From: Ian Jackson Date: Thu, 13 Jan 2011 01:26:44 +0000 (+0000) Subject: xl: correct test for domid on error exit from domain_create X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10927 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success/%22http:/www.example.com/cgi/success?a=commitdiff_plain;h=6e7334338f0e3d89ec9d4bf00c77f0d424db22a0;p=xen.git xl: correct test for domid on error exit from domain_create The previous changeset 22739:d839631b6048 changed the initialisation of domid without changing the corresponding cleanup test. Oops. Signed-off-by: Ian Jackson --- diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index d29d661a0f..d1b9f14fe4 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1627,7 +1627,7 @@ start: error_out: release_lock(); - if (domid) + if (domid > 0) libxl_domain_destroy(&ctx, domid, 0); out: